package com.lanou.zhihu.service.impl;

import com.lanou.zhihu.mapper.User_Message_Mapper;
import com.lanou.zhihu.service.User_Message_Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by QuChao on 2018/11/2.
 */
@Service
public class User_Message_ServiceImpl implements User_Message_Service {
    @Autowired
    public User_Message_Mapper userMessageMapper;


    @Override
    public Integer findByQid(String username) {
        int users = userMessageMapper.findId(username);
        return users;
    }

    @Override
    public int attention(Integer id) {
        return userMessageMapper.attention(id);
    }

    @Override
    public int be_focused(Integer id) {
        return userMessageMapper.be_focused(id);
    }
}

